button {
  border: none;
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 0.3rem;
}
.cart-container {
  background-color: #e5e5e5;
  height: 100%;
  margin-bottom: 129px;
}
.cart-container h3 {
  background-color: #fff;
  text-align: center;
  margin: 0;
  padding: 1rem;
  margin-bottom: 0.5rem;
}
.cart-container .product-item {
  display: grid;
  grid-template-areas: 'img title title price' 'img . . price' 'select . payMoney payMoney' '. . cancel pay';
  grid-template-columns: 100px 1fr 1fr max-content;
  grid-template-rows: max-content 1fr 0.5fr max-content;
  place-content: center;
  padding: 0.5rem;
  margin: 0.5rem 0;
  background-color: #fff;
}
.cart-container .product-item .img {
  grid-area: img;
}
.cart-container .product-item .img img {
  width: 100%;
  height: 100%;
}
.cart-container .product-item .title {
  grid-area: title;
  padding-left: 0.5rem;
}
.cart-container .product-item .price {
  grid-area: price;
  justify-self: flex-end;
}
.cart-container .product-item .price .unit-price {
  color: red;
}
.cart-container .product-item .price .amount {
  margin-top: 0.3rem;
  color: #555555;
}
.cart-container .product-item .price .amount div {
  width: 100%;
  text-align: right;
}
.cart-container .product-item .select {
  grid-area: select;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #e5e5e5e5;
  align-self: center;
  background-color: #fff;
}
.cart-container .product-item .pay {
  position: relative;
  margin: 0.5rem 0;
  grid-area: payMoney;
  line-height: 4rem;
  justify-self: flex-end;
}
.cart-container .product-item .pay::after,
.cart-container .product-item .pay::before {
  content: '';
  height: 1px;
  width: 100vw;
  background-color: #e5e5e5;
  position: absolute;
  right: 0;
}
.cart-container .product-item .pay::before {
  top: 0;
}
.cart-container .product-item .pay::after {
  bottom: 0;
}
.cart-container .product-item .cancel-button {
  grid-area: cancel;
  justify-self: center;
}
.cart-container .product-item .cancel-button button {
  background-color: #fff;
  border: 1px solid #e5e5e5;
}
.cart-container .product-item .pay-button {
  grid-area: pay;
  justify-self: end;
}
.cart-container .product-item .pay-button button {
  background-color: red;
  color: #fff;
  border: 1px solid red;
}
.cart-container .pay-all {
  position: fixed;
  bottom: 64px;
  left: 0;
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  border-top: 1px solid #e5e5e5;
  background-color: #fff;
}
.cart-container .pay-all .select-product {
  flex: 0.3;
  display: flex;
  align-items: center;
}
.cart-container .pay-all .select-product .select-all {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background-color: #fff;
  margin-left: 0.5rem;
}
.cart-container .pay-all .count-price {
  flex: 0.4;
  text-align: right;
}
.cart-container .pay-all .count-price span {
  margin-right: 0.5rem;
}
.cart-container .pay-all .buy {
  flex: 0.4;
  background-color: red;
  color: #fff;
  border: 1px solid red;
  height: 100%;
  width: 50%;
  line-height: 64px;
  text-align: center;
}
